<T:ViewBase x:Class="WPFExcelReport.TSYSPRDEF02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPPROG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPPROG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPANW:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPANW}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPBEZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPBEZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPSTAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPSTAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPMODTYP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPMODTYP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPVKZGL1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPVKZGL1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPVKZGL2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPVKZGL2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPVKZGL3:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPVKZGL3}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPVKZGL4:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPVKZGL4}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYPVKZGL5:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSPRDEF.SYPVKZGL5}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsSYSPRDEF,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwSYSPRDEF}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwSYSPRDEF, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="SYPMANDANT"
                                    Binding="{Binding Path=SYPMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPPROG"
                                    Binding="{Binding Path=SYPPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPANW"
                                    Binding="{Binding Path=SYPANW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPANW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPBEZ"
                                    Binding="{Binding Path=SYPBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPSTAKZ"
                                    Binding="{Binding Path=SYPSTAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPSTAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPMODTYP"
                                    Binding="{Binding Path=SYPMODTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPMODTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZGL1"
                                    Binding="{Binding Path=SYPVKZGL1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZGL1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZGL2"
                                    Binding="{Binding Path=SYPVKZGL2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZGL2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZGL3"
                                    Binding="{Binding Path=SYPVKZGL3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZGL3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZGL4"
                                    Binding="{Binding Path=SYPVKZGL4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZGL4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZGL5"
                                    Binding="{Binding Path=SYPVKZGL5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZGL5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPPFTAST"
                                    Binding="{Binding Path=SYPPFTAST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPPFTAST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPANWKRZ"
                                    Binding="{Binding Path=SYPANWKRZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPANWKRZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPFCALLG"
                                    Binding="{Binding Path=SYPFCALLG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPFCALLG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPFCNUM"
                                    Binding="{Binding Path=SYPFCNUM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPFCNUM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPBACKOUT"
                                    Binding="{Binding Path=SYPBACKOUT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPBACKOUT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPUPRO"
                                    Binding="{Binding Path=SYPUPRO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPUPRO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZZW1"
                                    Binding="{Binding Path=SYPVKZZW1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZZW1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZZW2"
                                    Binding="{Binding Path=SYPVKZZW2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZZW2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZZW3"
                                    Binding="{Binding Path=SYPVKZZW3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZZW3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPVKZZW4"
                                    Binding="{Binding Path=SYPVKZZW4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPVKZZW4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPUSERPRG"
                                    Binding="{Binding Path=SYPUSERPRG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPUSERPRG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPREITER"
                                    Binding="{Binding Path=SYPREITER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPREITER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPBUTTON"
                                    Binding="{Binding Path=SYPBUTTON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPBUTTON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPTABLE"
                                    Binding="{Binding Path=SYPTABLE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPTABLE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPTIME"
                                    Binding="{Binding Path=SYPTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPICON"
                                    Binding="{Binding Path=SYPICON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPICON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPFILLER"
                                    Binding="{Binding Path=SYPFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPAEND"
                                    Binding="{Binding Path=SYPAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPAENB"
                                    Binding="{Binding Path=SYPAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPNEUD"
                                    Binding="{Binding Path=SYPNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPNEUB"
                                    Binding="{Binding Path=SYPNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYPAENZL"
                                    Binding="{Binding Path=SYPAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYPAENZL}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
